package com.example.service;

import com.example.dto.AssignRoleDto;
import com.example.entity.Result;
import com.example.entity.Role;
import com.example.page.Page;

import java.util.List;

/**
 * @Author:tjf
 * @Description:
 */
public interface RoleService {
    List<Role> queryAllRoles();
    List<Role> queryRoleListByUserId(int userId);
    Result assignRoleByUserId(AssignRoleDto assignRoleDto);
    Page queryRoleByConditionForPagination(Role role, Page page);
    Result saveRole(Role role);
    Result modifyRoleStateByRoleId(Role role);
    void grantAuthByRoleId(int roleId, List<Integer> authIdList);
    void removeRoleByRoleId(int roleId);
    Result modifyRoleDescByRoleId(Role role);
}
